package com.guomao.demoa;

import java.util.Comparator;

public class JavaDemo1 {

    public static void main(String[] args) {


       /* new Comparator<Student>() {
            @Override
            public int compare(Student o1, Student o2) {
                return 0;
            }
        };*/

       /* new MyInterA() {
            @Override
            public void method1() {
                System.out.println("method1");
            }
        };*/


/*        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100; i++) {
                    System.out.println(i);
                }
            }
        }).start();*/

        new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println(i);
            }
        }).start();

        //->
        Runnable r = () -> {
            for (int i = 0; i < 100; i++) {
                System.out.println(i);
            }
        };

        Runnable r1 = () -> {

        };

        Runnable r2 = () -> {

        };
    }
}
